package com.beyondsoft.sabg.edu.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author Mo cr
 * @Date 2023/8/7
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasicDTO {
    private Long id;
    private String name;
    private String created;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    private Boolean validity;
    // 第几页
    private int current;
    // 每页数量
    private int pageSize;
    // 以哪个字段排序
    private String sort;
    // 正序/逆序
    private String order;

}
